gtk/modelbutton: Handle unpaired releases
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 11 Dec 2020 15:59:07 +0000 (16:59 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 12 Dec 2020 00:42:42 +0000 (01:42 +0100)
commit5155fac94f815d362fa02c9f2548c3c166663962
tree1fd05e30f702927404b6c7e5e4b38fe80f4d49be
parent7a4d15dc6799ba94388dfd598b5ad2401dfa90b7
gtk/modelbutton: Handle unpaired releases

Let model buttons handle unpaired releases, these may happen indirectly
e.g. due to other child menus being opened at the time. Clicking would
dismiss the menu, but the menu item beneath the pointer would not get
activated.

We can handle that button release though via ::unpaired-release, so
there's no second click required.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3463
gtk/gtkmodelbutton.c